package com.grj.template.boot.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.grj.template.boot.domain.User;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.validation.Valid;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

/**
* @author eren
* @description 针对表【user】的数据库操作Service
* @createDate 2024-10-11 14:22:17
*/
public interface UserService extends IService<User> {

    Page<User> fetchUserPage(int currentPage, int pageSize, User bean, List<Date> during);

    void postUser(@Valid User user);

    void putUser(@Valid User user);

    void delUser(Long userId);

    void batchDelUser(List<Long> userIds);

    User fetchUserById(Long userId);

    User getUserByUsername(String name);
}
